package com.cskaoyan.shopping.service.remote;

import com.cskaoyan.mall.api.CartService;
import com.cskaoyan.mall.dto.ClearCartItemRequest;
import com.cskaoyan.mall.dto.ClearCartItemResponse;
import com.cskaoyan.shopping.service.ICartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :ligenghuisheng
 * @Description:
 * @Date :2022/4/26  15:46
 */
@RestController
public class CartServiceImpl implements CartService {
    @Autowired
    ICartService iCartService;
    @Override
    @RequestMapping(value = "/rpc/items",method = RequestMethod.DELETE)
    public ClearCartItemResponse clearCartItemByUserID(ClearCartItemRequest request) {
        return iCartService.clearCartItemByUserID(request);
    }
}
